﻿using System;
using System.Xml.Serialization;

namespace EpiNEXT.Services.Fields.Properties
{
    //[Serializable()]
    public class Thickness
    {
        [XmlElement]
        public double Left { get; set; }
        [XmlElement]
        public double Top { get; set; }
        [XmlElement]
        public double Right { get; set; }
        [XmlElement]
        public double Bottom { get; set; }

        public Thickness()
        {
            Left = 0; Top = 0; Right = 0; Bottom = 0;
        }

        public Thickness(double thickness)
        {
            Left = thickness;
            Top = thickness;
            Right = thickness;
            Bottom = thickness;
        }

        public Thickness(double left, double top, double right, double bottom)
        {
            Left = left;
            Top = top;
            Right = right;
            Bottom = bottom;
        }
    }
}
